<!--{hook admin_footer_start.htm}-->

<?php $db = GLOBALS('db');?>
<?php $time = GLOBALS('time');?>
<?php $ip = GLOBALS('ip');?>
<?php $useragent = GLOBALS('useragent');?>
<?php $starttime = GLOBALS('starttime');?>
<?php $forumlist = GLOBALS('forumlist');?>
<?php $forumarr = GLOBALS('forumarr');?>
<?php $fid = GLOBALS('fid');?>
<?php $conf = GLOBALS('conf');?>
<?php $config = GLOBALS('config');?>
<?php $static_version = $conf['static_version'];?>

    <?php echo xn_debug_info();?>
</div> <!--main ./ end-->
    <!--{hook admin_footer_footer_before.htm}-->

            </div> <!--row ./ end-->
        </div> <!--container-fluid ./ end-->
    </main>

    <!--{hook admin_footer_footer_center.htm}-->

<footer class="d-flex justify-content-between text-muted small border-top bg-light py-3" id="footer">
    <div class="col">
        <!--{hook admin_footer_footer_left_start.htm}-->
        Powered by <b><?php echo $config['name'];?></b>
        <!--{hook admin_footer_footer_left_end.htm}-->
    </div>
    <div class="col text-right">
        <!--{hook admin_footer_footer_right_start.htm}-->
        Time: <b><?php echo substr(microtime(1) - $starttime, 0, 5);?></b>, SQL: <b><?php echo count($db->sqls);?></b>
        <!--{hook admin_footer_footer_right_end.htm}-->
    </div>
</footer>

    <!--{hook admin_footer_footer_after.htm}-->

	<!--[if lt IE 9]>
	<script>window.location = '<?php echo url('browser');?>';</script>
	<![endif]-->
	
	<!--{hook admin_footer_js_before.htm}-->

	<script src="<?php echo url_path();?>lang/<?php echo $conf['lang'];?>/lang.js<?php echo $static_version;?>"></script>
	<script src="<?php echo admin_view_path();?>js/jquery-3.4.1.min.js<?php echo $static_version;?>"></script>
	<script src="<?php echo admin_view_path();?>js/popper.min.js<?php echo $static_version;?>"></script>
	<script src="<?php echo admin_view_path();?>js/bootstrap.min.js<?php echo $static_version;?>"></script>
	<script src="<?php echo admin_view_path();?>js/xiuno.js<?php echo $static_version;?>"></script>
	<script src="<?php echo admin_view_path();?>js/bootstrap-plugin.js<?php echo $static_version;?>"></script>
	<script src="<?php echo admin_view_path();?>js/async.min.js<?php echo $static_version;?>"></script>
	<script src="<?php echo admin_view_path();?>js/form.js<?php echo $static_version;?>"></script>
	<script>
	var debug = DEBUG = <?php echo DEBUG; ?>;
	var url_rewrite_on = <?php echo $conf['url_rewrite_on'];?>;
	var url_path = '<?php echo $conf['path'];?>';
	var admin_access = 1;
	var fid = <?php echo $fid;?>;
	</script>
	<script src="<?php echo admin_view_path();?>js/wellcms.js<?php echo $static_version;?>"></script>
	
	<!--{hook admin_footer_js_after.htm}-->
	
	</body>
</html>
<script>
    $(function () {
        var my_url = $('a.my-url');
        var my_href = my_url.attr('href');
        if (url_rewrite_on > 1) {
            my_href = my_href.replace('/admin', '');
        } else {
            my_href = my_href.replace(my_href, '../' + my_href);
        }
        my_url.attr('href', my_href);

        <?php if ($action!='login') { ?>
        $(document).ready(function () {
            window_width_auto();
        });
        <?php } ?>
        $(window).resize(function () {
            window_width_auto();
        });
        function window_width_auto() {
            window_width = $(window).width();
            if (window_width < 769) {
                $('header').addClass('navbar-dark bg-dark-blue py-1');
            } else {
                $('header').removeClass('navbar-dark bg-dark-blue py-1');
            }
        }
    });
</script>
<!--{hook admin_footer_end.htm}-->